

void delay(volatile int i)
{
	while(i--);
}

int led_on(int i)
{
	unsigned int *pGPFCON = (unsigned int*)0x56000050;
	unsigned int *pGPFDAT = (unsigned int*)0x56000054;

	if(i == 4)
	{
		pGPFCON = 0x100;
	}
	else if(i == 5)
	{
		pGPFCON = 0x400;
	}

	*pGPFDAT = 0;
	return 0;
}


